package cn.edu.scau.nursingcenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import cn.edu.scau.nursingcenter.entiry.Check_in;


/**
 * 入住信息管理DAO接口Check_inRepository
 * @author feng 
 *
 */
@Repository
public interface Check_inRepository extends JpaRepository<Check_in, Integer>{
	/**
	 * 根据客户名字查询
	 * @param name客户名字
	 * @return list
	 */
	@Query(value = "from check_in ci where ci.c_name = ?1")
	List<Check_in> findByName(@Param("c_name")String name);

}
